--Header

char[12] magic		//"Spring unit\0"
dword version		//0 for this version
float radius		//radius of collision sphere
float height		//height of whole object
float midx		//these give the offset from origin(which is supposed to lay in the ground plane) to the middle of the unit collision sphere
float midy
float midz
dword rootPiece		//offset in file to root piece
dword collisionData	//offset in file to collision data, must be 0 for now (no collision data)
dword texture1		//offset in file to char* filename of first texture
dword texture2		//offset in file to char* filename of second texture


--Piece

dword name		//offset in file to char* name of this piece
dword numChilds		//number of sub pieces this piece has
dword childs		//file offset to table of dwords containing offsets to child pieces
dword numVertices	//number of vertices in this piece
dword vertices		//file offset to vertices in this piece
dword vertexType	//0 for now
dword primitiveType	//type of primitives for this piece, 0=triangles,1 triangle strips,2=quads
dword vertexTableSize	//number of indexes in vertice table
dword vertexTable	//file offset to vertice table, vertice table is made up of dwords indicating vertices for this piece, to indicate end of a triangle strip use 0xffffffff
dword collisionData	//offset in file to collision data, must be 0 for now (no collision data)
float xoffset		//offset from parent piece
float yoffset
float zoffset

--Vertex

float xpos		//position of vertex relative piece origin
float ypos
float zpos
float xnormal		//normal of vertex relative piece rotation
float ynormal
float znormal
float texu		//texture offset for vertex
float texv

--Textures

The two texture files pointed out by texture1 and 2 is applied over the whole unit and uses the same texture coordinates
The first texture should be in rgba dxt5 format, the second in rgb dxt1 format
The different color channels have the following functions
Texture1
RGB=rgb color
Alpha=team color (0=full RGB texture color, 1=full Team color, blends in between)

Texture2
Red=Self illumination, this value is added to the lighting value of fragment
Green=Reflectivness
Blue, must be zero for now might be used for bumpmap or something in future (or maybe place a bumpmap in alpha for better resolution)

Texture 2 will be ignored when running with the simples shading model